<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include::header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5></h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input type="hidden" name="id" id="id" th:value="${workOrder.id}">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">申请门店:</label>
                            <label class="col-sm-2 control-label" th:text="${workOrder.realname}"></label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label">上级门店:</label>
                            <label class="col-sm-2 control-label"
                                   th:text="${workOrder.upRealname} == null? '无':${workOrder.upRealname}"></label>
                        </div>
						
                        <div class="form-group">
                            <label class="col-sm-4 control-label">退款金额:</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="paymoney" name="paymoney" type="number" min="0"
                                       th:value="${workOrder.paymoney}">
                            </div>
                        </div>
                        <!--康哥说暂时屏蔽掉 -->
                        <div class="form-group" >
                            <label class="col-sm-4 control-label">退到余额:</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="credit2money" name="credit2money" type="number" min="0"
                                       th:value="${workOrder.credit2money}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">售后数量:</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="nums" name="nums" type="number" min="0"
                                       th:value="${workOrder.nums}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">售后类型:</label>
                            <div class="col-sm-4">
                                <select name="type" id="type" class="form-control" type="text" onchange="onTypeSelected(this)">
                                    <option th:each="item,iterStat: ${workOrderTypes}" th:text="${item.typename}"
                                            th:value="${item.id}" th:field="*{workOrder.type}"></option>
                                </select>
                                
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="col-sm-4 control-label">售后原因:</label>
                            <input id="pridVal" th:value="${workOrder.prid}" type="hidden">
                            <div class="col-sm-4">
                                <select name="prid" id="prid" class="form-control" type="text">

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label">责任方:</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="response" name="response" type="text" value="供应商">
                            </div>
                        </div>

                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/workorder/order/forwardCw.js">
</script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
</script>
</body>

</html>
